package com.idp.system.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * 共用Service接口
 * @author king
 */
public interface CommonService {

    /**
     * 文件显示
     * @param id
     * @param response
     */
    void showFile(String id, HttpServletResponse response);

    /**
     * 上传文件
     * @param file
     * @param backType
     * @return
     */
    String uploadFile(MultipartFile file, String backType);

}
